import { UDFCompatibleDatafeedBase } from "./udf-compatible-datafeed-base";
import { QuotesProvider } from "./quotes-provider";
import { Requester } from "./requester";

export class UDFCompatibleDatafeed extends UDFCompatibleDatafeedBase {
  public constructor(
    datafeedURL: string,
    updateFrequency: number = 10 * 1000,
    opts: any
  ) {
    const requester = new Requester(opts);
    const quotesProvider = new QuotesProvider(datafeedURL, requester);
    super(datafeedURL, quotesProvider, requester, updateFrequency, opts);
  }
}
